 <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/jstl.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
    response.setContentType("application/x-download");//设置为下载application/x-download
%>
<form id="pagerForm" method="post" action="S540804.stp">
	<input type="hidden" name="pageNum" value="${ETF.PAGENUM}" />
	<!--当前第几页-->
	<input type="hidden" name="START_DAT" value="${ETF.START_DAT}" /> <input
		type="hidden" name="END_DAT" value="${ETF.END_DAT}" /> <input
		type="hidden" name="CUST_NAME" value="${ETF.CUST_NAME}" /> <input
		type="hidden" name="USR_MOBILE" value="${ETF.USR_MOBILE}" /> <input
		type="hidden" name="CUST_STATUS" value="${ETF.CUST_STATUS}" /> <input
		type="hidden" name="USR_STATUS" value="${ETF.USR_STATUS}" /> <input
		type="hidden" name="CUST_LOGIN" value="${ETF.CUST_LOGIN}" /> <input
		type="hidden" name="USR_EMAIL" value="${ETF.USR_EMAIL}" />
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="S540804.stp"
		method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>报文名称:</td>
					<td><input type="text" size="23" maxlength="50" id="FILENAME"
						name="FILENAME" value="${ETF.FILENAME}" />
					</td>
					<td>报文类型:</td>
					<td><select name="FILETYPE" id="FILETYPE">
							<option value="-1">--请选择--</option>
							<option value="deals"
								<c:if test="${ETF.FILETYPE == 'deals'}">selected="selected"</c:if>>可疑交易报文</option>
							<option value="behavior"
								<c:if test="${ETF.FILETYPE == 'behavior'}">selected="selected"</c:if>>可疑行为报文</option>
							<option value="added"
								<c:if test="${ETF.FILETYPE == 'added'}">selected="selected"</c:if>>可疑交易报文</option>
					</select>
					</td>
					<td>创建日期:</td>
					</td>
					<td colspan="3"><input type="text" name="CREATEFILESTARTDATE"
						class="date" readonly="true" value="${ETF.CREATEFILESTARTDATE}" />
						~ <input type="text" class="date" readonly="true"
						name="CREATEFILEENDDATE" value="${ETF.CREATEFILEENDDATE}" />
					</td>
					<td>
						<div class="subBar">
							<ul>
								<li><div class="buttonActive">
										<div class="buttonContent">
											<button type="submit">查询</button>
										</div>
									</div></li>
							</ul>
						</div></td>
				</tr>
			</table>

		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar"></div>
	<table class="table" width="100%" layoutH="174">
		<thead>
			<tr>
				<th width="10%">报文名称</th>
				<th width="10%">创建日期</th>
				<th width="13%">存储地址</th>
				<th width="7%">报文类型</th>
				<!--  <th width="13%">下载次数</th> -->
				<th width="7%">创建者</th>
				<th width="16%">操 &nbsp;&nbsp; 作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${ETF.REPORTFILELIST}" var="RF">
				<tr target="sid_user" rel="1">
					<td>${RF.FILE_NAME}</td>
					<td>${RF.CREATE_FILE_TIME}</td>
					<td>${RF.FILE_URL}</td>
					<td><c:if test="${RF.FILE_TYPE == 'deals'}">可疑交易报文</c:if> <c:if
							test="${RF.FILE_TYPE == 'behavior'}">可疑行为报文</c:if> <c:if
							test="${RF.FILE_TYPE == 'added'}">补充交易报文</c:if></td>
				<!-- <td>${RF.DOWNLOAD_NUM}</td>  -->
					<td>${RF.CREATE_USER_NAME}</td>
					<td><a href="down?filepath=dat/reportFile/${RF.FILE_NAME}" target="_black">下载xml</a>
					<c:if test="${RF.FILE_TYPE != 'behavior'}">
					|<a href="down?filepath=dat/reportFile/${fn:substring(RF.FILE_NAME, 0, fn:length(RF.FILE_NAME)-3)}xls" target="_black">下载excel
					</c:if>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>共[${ETF.TOLCNT}]条,当前第${(ETF.PAGENUM)*(ETF.NUMPERPAG)-(ETF.NUMPERPAG)+1}-<c:if
					test='${ETF.TOLCNT-(ETF.PAGENUM)*(ETF.NUMPERPAG)>=ETF.PAGENUM}'>${(ETF.PAGENUM)*(ETF.NUMPERPAG)}</c:if>
				<c:if test='${ETF.TOLCNT-(ETF.PAGENUM)*(ETF.NUMPERPAG)<ETF.PAGENUM}'>${ETF.TOLCNT}</c:if>条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="${ETF.TOLCNT}"
			numPerPage="${ETF.NUMPERPAG}" pageNumShown="${ETF.NUMPERPAG}"
			currentPage="${ETF.PAGENUM}"></div>
	</div>